package gamagora.game.world.maps.game
{
	import gamagora.game.world.maps.OSMap;
	import gamagora.game.entity.*;

	public class OSMap38 extends OSMap
	{
		public function OSMap38()
		{
			super();

			var ground:OSGround = new OSGround(0, 240, 20, 840, 0, false);
			ground.setNoErosionDown([41]);
			ground.setNoErosionRight([0, 11, 12, 18, 27, 41]);
			ground.setNoErosionLeft([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41]);
			ground.erode();
			add(ground);

			ground = new OSGround(20, 240, 600, 20, 0, false);
			ground.setNoErosionLeft([0]);
			ground.erode();
			add(ground);

			ground = new OSGround(20, 460, 220, 40, 0, false);
			ground.setNoErosionLeft([0, 11]);
			ground.erode();
			add(ground);

			ground = new OSGround(20, 600, 600, 20, 0, false);
			ground.setNoErosionDown([13]);
			ground.setNoErosionLeft([0]);
			ground.erode();
			add(ground);

			add(new OSCage(20, 656, false));

			add(new OSCage(20, 716, false));

			ground = new OSGround(20, 780, 260, 20, 0, false);
			ground.setNoErosionLeft([0]);
			ground.setNoErosionRight([12]);
			ground.erode();
			add(ground);

			ground = new OSGround(20, 1060, 940, 20, 0, false);
			ground.setNoErosionUp([25, 42, 43, 44, 45, 46]);
			ground.setNoErosionDown([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46]);
			ground.setNoErosionLeft([0]);
			ground.setNoErosionRight([46]);
			ground.erode();
			add(ground);

			add(new OSCage(100, 996, false));

			add(new OSMovingBox(200, 380));

			ground = new OSGround(280, 620, 20, 180, 0, false);
			ground.setNoErosionUp([0]);
			ground.setNoErosionDown([8]);
			ground.setNoErosionLeft([8]);
			ground.erode();
			add(ground);

			ground = new OSGround(260, 860, 180, 20, 45, false);
			ground.setBorders(true, true);
			add(ground);

			ground = new OSGround(300, 460, 440, 40, 0, false);
			ground.setNoErosionRight([21, 43]);
			ground.erode();
			add(ground);

			add(new OSMovingBox(300, 520));

			ground = new OSGround(580, 840, 160, 20, 0, false);
			ground.setNoErosionUp([6, 7]);
			ground.setNoErosionRight([7]);
			ground.erode();
			add(ground);

			ground = new OSGround(700, 800, 40, 40, 0, false);
			ground.setNoErosionDown([2, 3]);
			ground.setNoErosionRight([1, 3]);
			ground.erode();
			add(ground);

			ground = new OSGround(740, 20, 180, 680, 0, false);
			ground.setNoErosionDown([297]);
			ground.setNoErosionLeft([198, 207]);
			ground.erode();
			add(ground);

			ground = new OSGround(740, 700, 20, 160, 0, false);
			ground.setNoErosionUp([0]);
			ground.setNoErosionLeft([5, 6, 7]);
			ground.erode();
			add(ground);

			ground = new OSGround(860, 920, 100, 140, 0, false);
			ground.setNoErosionDown([30, 31, 32, 33, 34]);
			ground.setNoErosionRight([4, 9, 14, 19, 24, 29, 34]);
			ground.erode();
			add(ground);

			ground = new OSGround(380, 980, 180, 20, 45, false);
			ground.setBorders(true, true);
			addForeground(ground);
		}
	}
}
